import Driver from 'events';

import App from '@service/app.service.js';
import Dom from '@service/dom.service.js';
import Port from '@service/port.service.js';

const driver = new Driver();

const app = new App(driver);
const dom = new Dom(driver);
const port = new Port(driver);

const refs = {
	appRef: app,
	domRef: dom,
	portRef: port,
	driverRef: driver
};

driver.emit('startup', refs);